package kr.co.doriclassic.ifelse;

public class Word {
	private char cWord;

	public Word() {
	}

	public Word(char cWord) {
		super();
		this.cWord = cWord;
	}
	
	public void changeWord(){
		if(cWord>='A'&&cWord<='Z'){
			System.out.printf("%c%n",cWord-'A'+'a'); 
		}
		else if(cWord>='a'&&cWord<='z') {
			System.out.printf("%c%n",cWord);
			System.out.println("대문자를 입력하시오");
		}
		else{
			System.out.println("영문자만 입력 가능!!");
		}
		
	}
	
}
